package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 order
 * 
 * @author ruoyi
 * @date 2024-11-27
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员用户订单ID */
    private Long orderId;

    /** 会员用户ID */
    @Excel(name = "会员用户ID")
    private Long userId;

    /** 实体店ID */
    @Excel(name = "实体店ID")
    private Long storeId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNum;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal payment;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 物流单号 */
    @Excel(name = "物流单号")
    private String logistics;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long amount;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }
    public void setGoodId(Long goodId) 
    {
        this.goodId = goodId;
    }

    public Long getGoodId() 
    {
        return goodId;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setPayment(BigDecimal payment) 
    {
        this.payment = payment;
    }

    public BigDecimal getPayment() 
    {
        return payment;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setLogistics(String logistics) 
    {
        this.logistics = logistics;
    }

    public String getLogistics() 
    {
        return logistics;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("storeId", getStoreId())
            .append("goodId", getGoodId())
            .append("orderNum", getOrderNum())
            .append("price", getPrice())
            .append("payment", getPayment())
            .append("status", getStatus())
            .append("logistics", getLogistics())
            .append("remark", getRemark())
            .append("payTime", getPayTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("amount", getAmount())
            .toString();
    }
}
